package cn.enine.tbcharge.ui;


import android.annotation.SuppressLint;
import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import cn.enine.tbcharge.R;
import cn.enine.tbcharge.util.SharedPreferencesUtils;

@SuppressLint("NewApi")
public class WdFragment extends Fragment {

    TextView myname;
    LinearLayout sfxmview,grxxview,headl;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        View view = inflater.inflate(R.layout.wd_fragment, null);
        myname = (TextView) view.findViewById(R.id.myname);
        myname.setText(SharedPreferencesUtils.getParam(getActivity(),"uname","").toString());
        sfxmview = (LinearLayout) view.findViewById(R.id.sfxmview);
        sfxmview.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(),XmlistActivity.class));
            }
        });
        grxxview= (LinearLayout) view.findViewById(R.id.grxxview);
        grxxview.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(),ResetPasswordActivity.class));
            }
        });
        headl= (LinearLayout) view.findViewById(R.id.headl);
        headl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(),AppUserActivity.class));
            }
        });
        return view;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onActivityCreated(savedInstanceState);


    }

}
